package com.linewell.mongodemo.pojo;

import org.hibernate.validator.constraints.Length;
import org.springframework.data.mongodb.core.mapping.Field;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

public class WordInfo implements Serializable{
	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = -3612118998L;
	
	/**
	 * word文件id
	 */
	@NotNull
	@Length(min=0,max=100)
	@Field("fileId")
	private String fileId;
	
	/**
	 * word文件name
	 */
	@NotNull
	@Length(min=0,max=100)
	@Field("fileName")
	private String fileName;
	
	/**
	 * 红头文件宽度
	 */
	@NotNull
	@Field("width")
	private Double width;
	
	/**
	 * 红头文件高度
	 */
	@NotNull
	@Field("height")
	private Double height;

	/**
	 * 红头文件id
	 */
	@NotNull
	@Field("htImgId")
	private String htImgId;
	

	
	/***
	 * 文件格式
	 * 0:word|excel,1:pdf,2:图片
	 */
	@Field("flag")
	private Integer flag = 0;


	
	public String getFileId() {
		return fileId;
	}
	public void setFileId(String fileId) {
		this.fileId = fileId;
	}
	public Double getWidth() {
		return width;
	}
	public void setWidth(Double width) {
		this.width = width;
	}
	public Double getHeight() {
		return height;
	}
	public void setHeight(Double height) {
		this.height = height;
	}
	public String getHtImgId() {
		return htImgId;
	}
	public void setHtImgId(String htImgId) {
		this.htImgId = htImgId;
	}
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public Integer getFlag() {
		return flag;
	}
	public void setFlag(Integer flag) {
		this.flag = flag;
	}
	
}
